package Demo_zhuanshu01.X5;

import java.io.File;

public class Day05_Recurison {
    public static void main(String[] args) {
        File file = new File("G:\\xiangmu\\Definitely\\src\\day01\\Demo01_day01");
        getAllFile(file);

    }
    public static void getAllFile(File Question){
        File[] files = Question.listFiles();
        for (File file :files){
            if (file.isDirectory()){
                getAllFile(file);
            }else {
                if (file.getName().toLowerCase().endsWith(".java")){
                    System.out.println(file);
                }
            }
        }
    }
}
